.TH std::chrono::get_leap_second_info 3 "2024.06.10" "http://cppreference.com" "C++ Standard Libary"
.SH NAME
std::chrono::get_leap_second_info \- std::chrono::get_leap_second_info

.SH Synopsis
   Defined in header <chrono>
   template< class Duration >

   std::chrono::leap_second_info                                          \fI(since C++20)\fP

       get_leap_second_info( const std::chrono::utc_time<Duration>& ut
   );

   Obtains a std::chrono::leap_second_info whose is_leap_second and elapsed indicate
   whether ut is during a positive leap second insertion and the sum of leap seconds
   between 1 January 1970 and ut, respectively.

.SH Parameters

   ut - UTC time to examine

.SH Return value

   A leap_second_info value specified above.

.SH Exceptions

   May throw implementation-defined exceptions.

.SH See also

   leap_second_info leap second insertion information
   (C++20)          \fI(class)\fP
   leap_second      contains information about a leap second insertion
   (C++20)          \fI(class)\fP
